package com.huangbc.servicepassengeruser.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Derek.huang on 2024/3/28 10:46.
 */
@RestController
@RefreshScope
public class TestController {

    @GetMapping("/test")
    public String test(){
        return "test ServicePassengerUser";
    }

    @Value("${ceshi-application}")
    String ceshi;

    @GetMapping("/get-config")
    public String getConfig(){
        return ceshi;
    }

}
